home *** CD-ROM | disk | FTP | other *** search
- batNum = _root.julNum;
- julagain = 0;
- julspeed = 55;
- do
- {
- jul_speed = random(7) + 5;
- if(jul_speed != _root.julpoz["jul" + (_root.julNum - 1)].jul_speed)
- {
- break;
- }
- }
- while(jul_speed == _root.julpoz["jul" + (_root.julNum - 1)].jul_speed);
-
- bat_julNum = 0;
- batmove = 0;
- randpoz1 = random(60) + 150;
- randpoz2 = random(60) + 450;
- this.onEnterFrame = function()
- {
- bat_julNum += jul_speed;
- this._rotation = julspeed * Math.cos(bat_julNum * 0.017453292519943295) + 90;
- if(bat_julNum > 360)
- {
- bat_julNum -= 360;
- }
- if(_root.spidermove == 2 & batNum == _root.julNum - 1)
- {
- _root.spiderman.gotoAndStop("ready");
- spiderbatpoz = new Object();
- spiderbatpoz.x = _root.julpoz["jul" + (_root.julNum - 1)].batman.point._x;
- spiderbatpoz.y = _root.julpoz["jul" + (_root.julNum - 1)].batman.point._y;
- _root.julpoz["jul" + (_root.julNum - 1)].batman.localToGlobal(spiderbatpoz);
- _root.spacepress = 0;
- _root.spiderman._rotation = _root.julpoz["jul" + (_root.julNum - 1)]._rotation;
- _root.spidermanangle = _root.spiderman._rotation;
- _root.jumpangle = 360 - _root.spidermanangle - 90;
- _root.spiderman._x = spiderbatpoz.x;
- _root.spiderman._y = spiderbatpoz.y;
- if(_root.hitNum == 1)
- {
- _root.julpoz.attachMovie("jul_bat","jul" + _root.julNum,_root.julNum);
- _root.julpoz["jul" + _root.julNum]._x = -150;
- _root.hitNum = 0;
- }
- }
- this._x += 5;
- if(_root.julpoz["jul" + _root.julNum]._x >= randpoz1)
- {
- _root.julpoz["jul" + _root.julNum]._x = randpoz1;
- }
- if(_root.julpoz["jul" + (_root.julNum - 1)]._x >= randpoz2)
- {
- _root.julpoz["jul" + (_root.julNum - 1)]._x = randpoz2;
- }
- if(this._x > 750)
- {
- this.removeMovieClip();
- }
- };
-